using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Dolls
{
    /// <summary>
    /// 主界面
    /// </summary>
    public class uiMainMap : MonoBehaviour
    {
        public uiDolls mUIDolls;
        public uiDollsHatch mUIDollsHatch;
        public uiProduct mUIProduct;
        public uiResearch mUIResearch;
        public uiTotal mUITotal;
        public uiAD mUIAD;

        //public CHeroTalknew mSmallTalk;

        public void CloseAllUI()
        {
            //mUIDolls.Btn_Close();
            //mUIDollsHatch.Btn_Close();
            //mUIProduct.Btn_Close();
            //mUIResearch.Btn_Close();
            //mUITotal.Btn_Close();
            mUIAD.Btn_Close();
            //mSmallTalk.Btn_Close();
        }

        public void OpenUIDolls()
        {
            CloseAllUI();
            mUIDolls.Btn_Open();
        }
        public void OpenUIDollsHatch()
        {
            CloseAllUI();
            mUIDollsHatch.Btn_Open();
        }
        public void OpenUIProduct()
        {
            CloseAllUI();
            mUIProduct.Btn_Open();
        }
        public void OpenUIResearch()
        {
            CloseAllUI();
            mUIResearch.Btn_Open();
        }
        public void OpenUITotal()
        {
            CloseAllUI();
            mUITotal.Btn_Open();
        }
        public void OpenUIAD()
        {
            CloseAllUI();
            mUIAD.Btn_Open();
        }

        public void OpenTalkSmall()
        {
            //mSmallTalk.beginShow();
        }

        private void Start()
        {
            gDefine.gUIMainMap = this;
            gDefine.LoadData();
        }

    }

}

